package com.kui.trydoto.springmail;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class SelfProperties {
    public static String mailUserName;
    public static String mailPassword;

    public static String toMail;
    public static String ccMail;


    static {
        Properties properties = new Properties();
        try {
            InputStream inputStream = SelfProperties.class.getClassLoader().getResourceAsStream("self.properties");
            properties.load(inputStream);
            mailUserName = properties.getProperty("mail.username");
            mailPassword = properties.getProperty("mail.password");
            ccMail = properties.getProperty("mail.to");
            toMail = properties.getProperty("mail.cc");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
